package com.ruoyi.common.base.chat.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 会话对象 chat
 *
 * @author gdk
 * @date 2023-05-15
 */
@Data
public class ChatMessageAddRes {
    private static final long serialVersionUID = 1L;

    /**
     * 会话id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long chatId;

    /**
     * 消息id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long msgId;

    /**
     * 如果是新会话，返回标题
     */
    private String title;
}
